var AUTO;
(function (AUTO) {
    var SelectWord = (function () {
        function SelectWord(element) {
            var length = element.value.length;
            if (element.setSelectionRange) {
                element.focus();
                element.setSelectionRange(0, length);
            }
            else if (element.createTextRange) {
                var range = element.createTextRange();
                range.collapse(true);
                range.moveEnd('character', length);
                range.moveStart('character', 0);
                range.select();
            }
        }
        return SelectWord;
    }());
    AUTO.SelectWord = SelectWord;
})(AUTO || (AUTO = {}));
